//
//  DHCaseManageCell.m
//  DHKuaiYi
//
//  Created by 刘鹏飞 on 2016/11/16.
//  Copyright © 2016年 30-陈辉华. All rights reserved.
//

#import "DHCaseManageCell.h"

@interface DHCaseManageCell ()

@property (weak, nonatomic) IBOutlet UILabel *timeLbale;

@property (weak, nonatomic) IBOutlet UILabel *recordNameLable;


@property (weak, nonatomic) IBOutlet UIImageView *recordPicture;


@property (weak, nonatomic) IBOutlet UILabel *desTextLable;

@end

@implementation DHCaseManageCell

- (void)awakeFromNib {
    [super awakeFromNib];
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    if (self = [super initWithCoder:aDecoder]) {
        
        //self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        self.backgroundColor = [UIColor groupTableViewBackgroundColor];
        UIView *view = [[UIView alloc] init];
        self.selectedBackgroundView = view;
        
        UIView *deleteView = [[UIView alloc] init];
        deleteView.backgroundColor = [UIColor blueColor];
        
        [self.contentView addSubview:deleteView];
    }
    
    return self;
}

-(void)setModel:(DHAddCaseModel *)model {
    _model = model;
    self.recordNameLable.text = model.caseCatogory;
    self.desTextLable.text = model.describe;
    self.recordPicture = model.picArray[0];
    self.timeLbale.text = model.time;
//    UIImageView *imgView = model.picArray[0];
//    UIImage *img = imgView.image;
    self.recordPicture.image = [UIImage imageNamed:@"point"];
    self.recordPicture.backgroundColor = [UIColor redColor];

}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
